package cn.virens.web.components.shiro.token;

import java.io.Serializable;

public class ChannelTokenSimple implements ChannelToken, Serializable {
	private static final long serialVersionUID = -4780425440815562022L;

	private String username;
	private String usertype;

	public ChannelTokenSimple() {
	}

	public ChannelTokenSimple(String username) {
		this(username, "0,1");
	}

	public ChannelTokenSimple(String username, String usertype) {
		this.username = username;
		this.usertype = usertype;
	}

	@Override
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String getUsertype() {
		return usertype;
	}

	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}

}
